import { createStore, applyMiddleware, combineReducers } from 'redux'
import thunk from 'redux-thunk'
import countReducers  from './reducers/count'
import personReducers from './reducers/person'

const allReaducers = combineReducers({
  count: countReducers,
  persons: personReducers
})
export default createStore(allReaducers, applyMiddleware(thunk))